import request from '@/utils/request'

// 查询收款确认单列表
export function listOrder(query) {
  return request({
    url: '/fina/confirm/order/list',
    method: 'get',
    params: query
  })
}

// 查询收款确认单详细
export function getOrder(serialNum) {
  return request({
    url: '/fina/confirm/order/' + serialNum,
    method: 'get'
  })
}

// 新增收款确认单
export function addOrder(data) {
  return request({
    url: '/fina/confirm/order',
    method: 'post',
    data: data
  })
}

// 修改收款确认单
export function updateOrder(data) {
  return request({
    url: '/fina/confirm/order',
    method: 'put',
    data: data
  })
}

// 删除收款确认单
export function delOrder(serialNum) {
  return request({
    url: '/fina/confirm/order/' + serialNum,
    method: 'delete'
  })
}
// 同步
export function confirmSync() {
  return request({
    url: '/fina/confirm/order/sync',
    method: 'get'
  })
}
